import service from '@/utils/request'
import {useTeacherFileInfoApi} from "@/api/college/teacher";

export const useStudentSubmitApi = (data: any) => {
    if (data.id) return service.put('/sys/student', data)
    else return service.post('/sys/student', data)
}

export const useStudentInfoApi = (id: any) => {
    return service.get('/sys/student/info/' + id)
}
export const useStudentFileInfoApi = (id: any) => {
    return service.get('/s/student/info/u/' + id)
}

export const useClassStudentApi = (data: any) => {
    return service.get('/sys/student/page', {
        params: data
    })
}
